
//分页参数
let page = {
  total: 1,
  startIndex: 0,
  stepNumber: 40,
  currentPage: 1
};

//页面状态相关
let status = {
  //显示order的 modal
  modalConfirmOrderShow : false,
  modalSearch: {
    isShow: false,
  },
  modalInnerNote: {
    isShow: false,
  },
  modalAction: {
    isShow: false,
    isLoading: false,
    title: '',
    content: '',
    type: 0,//0:备货1出库
    order: {
      id: ''
    }
  },
  modalUserContactInfo:{
    isShow:false,
    info:{
      userName:"",
      encodeName:"",
      phoneCode : "",
      mobile:"",
      email:"",
      facebook:"",
      instagram:"",
      web:""
    }
  },
  modalDetail:{
    isShow:false,
  },
  modalExportTransferExcel:{
    isShow: false
  },
  modalImportantNote: {
    isShow: false,
  },
  modalConfirm: {
    isShow: false,
    isLoading: false,
    title: '',
    content: '',
    okText: "",
    cancelText: "",
    onOk: function(){}
  },
};

// 和网络交互相关的参数
let params = {
  orderState: "",
  orderSerialNumber: '',
  userName: '',
  startTime:"",
  endTime:"",
  waybill : "",
  orderBy:'',
  transferExcelType: 0, //物流对接单格式
  selectedOrders: [],
  modifyImportantNote:{
    orderIds:[],
    importantNote: "",
  }
};


// 页面的数据源
let data = {
  orderList: [],
  order:{},
  innerNoteList:[],
};


export  default  {
  tPage: page,
  tStatus: status,
  tData: data,
  tParams:params,
};

